<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('think', function () {
    return 'hello,ThinkPHP6!';
});

Route::post('api/register', 'Api/register'); // 注册
Route::post('api/login', 'Api/login');     // 登录
Route::post('api/wxLogin', 'Api/wxLogin'); // 微信登录（手机号注册、登录）
Route::post('api/wxLogin2', 'Api/wxLogin2'); // 微信登录（手机号注册、登录）

Route::post('api/smsCodeRe', 'Api/smsCodeRe'); // 短信验证码（注册）
Route::post('api/smsCode', 'Api/smsCode');     // 短信验证码（登录）
Route::post('api/wxAppletToken', 'Api/wxAppletToken'); // 微信小程序 access_token

Route::get('test', 'Api/test'); // 测试API
